package com.gulimall.api.feign;

import com.gulimall.common.core.domain.Result;
import com.gulimall.common.domain.es.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-search")
public interface SearchClient {
    /**
     * 上架商品
     */
    @PostMapping("/search/save/product/up")
    Result productUp(@RequestBody List<SkuEsModel> skuEsModels);
}
